﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masters/AdminSchedule.master" AutoEventWireup="true" CodeFile="Bus.aspx.cs" Inherits="Pages_Carrier_Bus" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" Runat="Server">
	<link rel="stylesheet" type="text/css" media="screen" href="../../styles/EntityViewStyle.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphContent" Runat="Server">
	<a href='<%= ResolveUrl("~/Pages/Carrier/BusEdit.aspx") %>'>Добавить новый</a>
	<asp:Repeater runat="server" ID="rptBus">
		<HeaderTemplate>
			<table class="miniTableView">
				<tr>
					<th>Имя</th>
					<th>Количество мест</th>
				</tr>
		</HeaderTemplate>
		<ItemTemplate>
				<tr>
					<td style="text-align: center;">
						<a href='<%# string.Format("{0}?Id={1}", ResolveUrl("~/Pages/Carrier/BusEdit.aspx"), Eval("Id")) %>'>
							<%# Eval("Name") %>
						</a>
					</td>
					<td style="text-align:center;"><%# Eval("PlaceCount")%></td>
				</tr>
		</ItemTemplate>
		<FooterTemplate>
			</table>
		</FooterTemplate>
	</asp:Repeater>
</asp:Content>

